﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Configuration;

namespace BusinessManagementStudio.Utilities
{
    public static class Configuration
    {
        public static String ExcelSrcPathForGenTemplate = WebConfigurationManager.AppSettings["ExcelSrcPathForGenTemplate"];
        public static String ExcelSrcPathForJLLPOTemplate = WebConfigurationManager.AppSettings["ExcelSrcPathForJLLPOTemplate"];
        public static String ExcelAndPDFDestPath = WebConfigurationManager.AppSettings["ExcelAndPDFDestPath"];
        public static String CompanyLogoPath = WebConfigurationManager.AppSettings["CompanyLogoPath"];
        public static int MaxNoOfRecords = int.Parse(WebConfigurationManager.AppSettings["MaxNoOfRecords"]);

        public static String CompanyNameInEnglish = WebConfigurationManager.AppSettings["CompanyNameInEnglish"];
        public static String CompanyNameInChinese = WebConfigurationManager.AppSettings["CompanyNameInChinese"];
        public static String CompanyAddressInEnglish = WebConfigurationManager.AppSettings["CompanyAddressInEnglish"];
        public static String CompanyAddressInChinese = WebConfigurationManager.AppSettings["CompanyAddressInChinese"];
        public static String CompanyExtraInfo = WebConfigurationManager.AppSettings["CompanyExtraInfo"];
        public static String CompanySignaturePath = WebConfigurationManager.AppSettings["CompanySignaturePath"];
        public static String JLLOrderPath = WebConfigurationManager.AppSettings["JLLOrderPath"];

        public static String ConnectionString = WebConfigurationManager.AppSettings["ConnectionString"];
        public static String DatabaseName = WebConfigurationManager.AppSettings["DatabaseName"];

        // Font Files
        public static String CompanyFontForEng = WebConfigurationManager.AppSettings["FontPath"] + WebConfigurationManager.AppSettings["CompanyFontFileForEng"];
        public static String CompanyFontForChi = WebConfigurationManager.AppSettings["FontPath"] + WebConfigurationManager.AppSettings["CompanyFontFileForChi"];

        // Currrency
        public static List<String> CurrencyList = WebConfigurationManager.AppSettings["AmtCurrency"].Split(',').ToList();

        // Report Type
        public static List<String> ReportTypeList = WebConfigurationManager.AppSettings["ReportType"].Split(',').ToList();
        public static String InvoiceReportName = WebConfigurationManager.AppSettings["InvoiceReportName"];
        public static String QuotationReportName = WebConfigurationManager.AppSettings["QuotationReportName"];
        public static String WorkOrderReportName = WebConfigurationManager.AppSettings["WorkOrderReportName"];
        public static String ReportOutputPath = WebConfigurationManager.AppSettings["ReportOutputPath"];
        public static String InvoiceReportFileName = WebConfigurationManager.AppSettings["InvoiceReportFileName"];
    }
}